<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> 
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> 
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/translator.tld" prefix="trans" %><head>

<%
 String ctx = request.getContextPath();
%>
<LINK rel="stylesheet" type="text/css" href="<html:rewrite page='/alf.css'/>">	
</head>



<logic:present name="selReady">
<script language="javascript">
opener.after_cat_sel();window.close();
</script>
</logic:present>
<logic:notPresent name="selReady">
<html:html>

<trans:initPage module="catselector" />
<br><br>
<table width="70%" align="center" cellpadding="5" cellspacing="1" border="0" background=<%=ctx%>/images/pixelbgtable.gif>
 <form action=<html:rewrite page="/catsel.do"/> method=POST><tr>
    <td class=textalb>
      <div align=center><trans:showPageMessage label="catselector.selectcategories" /></div>
    </td>
  </tr>
  <tr>
    <td class="text_search" bgcolor="#FFFFFF">

<select name="catsel">
<logic:iterate indexId="catId" scope="session" name="categories" id="category">
<option value=<bean:write name="catId" /> >
<bean:write name="category" property="name" filter="false"/>
</option>
</logic:iterate>
</select>
<html:submit property="add" styleClass="buton"><trans:showPageMessage label="catselector.add" hide_link="true"/></html:submit>
</td>
<tr><td bgcolor=ffffff>
<table align="center" cellpadding="5" cellspacing="1" border="0" background=<%=ctx%>/images/pixelbgtable.gif class="text_search" width=85%>
<logic:iterate scope="session" name="catlist" id="category">
<tr>
<td bgcolor=f9f9f9 width=15%>
<input type=checkbox name=delcat value=<bean:write name="category" property="id"/> />
</td>
<td bgcolor="#FFFFFF" class=text_searchbold>
<bean:write name="category" property="name"/>
</td>
</tr>
</logic:iterate>
</table><br>
<html:submit property="delete" styleClass="buton"><trans:showPageMessage label="catselector.removeselected" hide_link="true"/></html:submit>
</td></tr>
<tr>
<td bgcolor="#f2f2f2" class=text>
<div align=center><html:submit property="end" styleClass="butonsave"><trans:showPageMessage label="catselector.saveandreturntoproject" hide_link="true"/></html:submit></div><trans:showPageMessage label="translator.showhiddentags"/>
</td>
</tr>
</form>
</table>
</html:html>
</logic:notPresent>